Action Button Customization
Customize the action buttons used throughout the interface with these classes.
-
The SCSActionManager class controls the handling and display of the action buttons that are overlaid on the various Snap-ins SDK interface elements to allow the user to initiate various actions, such as:
- Creating a new case.
- Initiating a knowledge article search.
- Starting a Live Agent chat session.
- Initiating an SOS support session.
These built-in actions are managed through the action manager class, and can be customized through the use of it and the associated protocols available. Furthermore, the
SCSActionManagerDelegateprotocol can be used to interact with, and customize, the handling of these actions.Each action button that is displayed is represented by
See moreUIViewinstances that conform to theSCSActionItemprotocol. Each of these items are displayed within aUIViewControllerinstance that conforms to theSCSActionItemControllerprotocol. Built-in defaults are provided that implement these behaviors, and can be used to extend or customize functionality. Furthermore, the default action button is exposed as theSCSActionButtonclass, and can be used to introduce additional actions along side the built-in defaults, while still maintaining the same visual appearance.Declaration
Objective-C
@interface SCSActionManager : NSObjectSwift
class SCSActionManager : NSObject
-
Delegate protocol used by the
See moreSCSActionManagerto customize the appearance and functionality of the action manager.Declaration
Objective-C
@protocol SCSActionManagerDelegate <NSObject>Swift
protocol SCSActionManagerDelegate : NSObjectProtocol
-
Protocol defining the type of views capable of being added to an
SCSActionItemContainerobject.See moreSee
SCSActionManagerDeclaration
Objective-C
@protocol SCSActionItem <NSObject>Swift
protocol SCSActionItem : NSObjectProtocol
-
Default
See moreSCSActionIteminstance that provides the circular button for the default experience.Declaration
Objective-C
@interface SCSActionButton : UIButton <SCSActionItem>Swift
class SCSActionButton : UIButton, SCSActionItem
-
Protocol defining a type of
UIViewControllerthat can be used to displaySCSActionItemobjects.See moreSee
SCSActionManagerDeclaration
Objective-C
@protocol SCSActionItemContainer <NSObject>Swift
protocol SCSActionItemContainer : NSObjectProtocol
-
Undocumented
See moreDeclaration
Objective-C
typedef enum : NSUInteger { SCSActionItemDefaultSortArticleSearch = 10, SCSActionItemDefaultSortCaseInterface = 20, SCSActionItemDefaultSortChatInterface = 30, SCSActionItemDefaultSortSOSInterface = 40, } SCSActionItemDefaultSort -
Undocumented
Declaration
Objective-C
typedef NSString * SCSActionSwift
struct SCSAction : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
Install in Dash
Action Button Customization Reference